import Vue from 'vue'//
import VueRouter from 'vue-router'
import view_data from "@/components/viewData"

import view_hist from "@/components/view_hist"
import view_wordcloud from "@/components/view_wordcloud"

Vue.use(VueRouter)


const routes = [
    {
    path:"/",//网页上显示的位置，一般小写
    component: view_data,
    },
    {
    path:"/view_hist",//网页上显示的位置，一般小写
    component: view_hist,
    },
    {
        path:"/view_wordcloud",//网页上显示的位置，一般小写
        component: view_wordcloud,
        },
]

//创建Router的实例对象
const router = new VueRouter({
    mode:'hash',
    routes,
})

// 向外暴露
export default router